<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.form" />
<import type="css" file="css.global" />
<import file="js.My97DatePicker.WdatePicker" />
</head>
<body>
<div class="search"><b>修改用户信息</b></div>
<div id="form">
  <form action="__URL__/user_save" method="post" name="form1" onsubmit="return CheckForm();">
	<table>
		<tbody>
			<tr>
				<td class="titlename">姓名：</td>
				<td><input type="text" name="name" value="{$data_user.name}" readonly class="readonly" /></td>
			</tr>
			<tr>
				<td class="titlename">性别：</td>
				<td> 
					<input type="radio" name="sex" value="男" <if condition="$data_user['sex'] eq '男'" >checked</if> >男
					<input type="radio" name="sex" value="女" <if condition="$data_user['sex'] eq '女'" >checked</if> >女</td>
			</tr>
			<tr>
				<td class="titlename">手机：</td>
				<td> <input type="text" name="phone" size="25" maxlength="23" value="{$data_user.phone}"></td>
			</tr>
			<tr>
				<td class="titlename">电子邮件：</td>
				<td> <input type="text" name="email" size="25" maxlength="50" value="{$data_user.email}"></td>
			</tr>
			<tr>
				<td class="titlename">QQ号码：</td>
				<td> <input type="text" name="qq" size="25" maxlength="25" value="{$data_user.qq}"></td>
			</tr>
		    <tr>
		      <td class="titlename"> MSN：</td>
		      <td>
		        <input type="text" name="msn" size="25" maxlength="50" value="{$data_user.msn}">
		      </td>
		    </tr>
		    <tr>
		      <td class="titlename">生日：</td>
		      <td>
				<input type="text" name="birthday" size="25" maxlength="10" value="{$data_user.birthday}" onClick="WdatePicker()">
		      </td>
		    </tr>
		    
		    <tr>
		      <td class="titlename"> 住址：</td>
		      <td>
		        <input type="text" name="address" size="40" maxlength="100" value="{$data_user.address}">
		      </td>
		    </tr>
		    <tr>
		      <td class="titlename"> 家庭住址：</td>
		      <td>
		        <input type="text" name="home_add" size="40" maxlength="100" value="{$data_user.home_add}">
		      </td>
		    </tr>
		
		    <tr>
		      <td class="titlename"> 家庭邮编：</td>
		      <td>
		        <input type="text" name="home_post" size="25" maxlength="25" value="{$data_user.home_post}">
		      </td>
		    </tr>
		
		    <tr>
		      <td class="titlename"> 家庭电话：</td>
		      <td>
		        <input type="text" name="home_tel" size="25" maxlength="25" value="{$data_user.home_tel}">
		      </td>
		    </tr>
		    <tr>
		      <td class="titlename"> </td>
		      <td>
		        <input type="submit" name="submit" class="submit" value="保存">
		      </td>
		    </tr>
		</tbody>
	</table>
  </form>
</div>
</body>
<script type="text/javascript">
	
	function CheckForm(){
		if( $("input[name='email']").val() == "" ){ alert("邮件不能为空！");return false; }
	}
</script>
</html>